#ifndef TOOLS_HXX
#define TOOLS_HXX


namespace Tools
{

#define PI 3.1415926535897932384626433832795028841971693993751058209749445923//07816406286208998628034825342117067

	int min (int A, int B)
	{
		if (A > B)
			return B;
		return A;
	}

	unsigned min (unsigned A, unsigned B)
	{
		if (A > B)
			return B;
		return A;
	}

	float min (float A, float B)
	{
		if (A > B)
			return B;
		return A;
	}

	double min (double A, double B)
	{
		if (A > B)
			return B;
		return A;
	}

	int max (int A, int B)
	{
		if (A < B)
			return B;
		return A;
	}

	unsigned max (unsigned A, unsigned B)
	{
		if (A < B)
			return B;
		return A;
	}

	float max (float A, float B)
	{
		if (A < B)
			return B;
		return A;
	}

	double max (double A, double B)
	{
		if (A < B)
			return B;
		return A;
	}
}


#endif // TOOLS_HXX
